package com.he.bridgeingmodel;

import com.he.bridgeingmodel.abstration.PhoneBrand;
import com.he.bridgeingmodel.abstration.refinedabstration.XiaoMiPhone;
import com.he.bridgeingmodel.implementor.concreteimplementor.CallImpl;
import com.he.bridgeingmodel.implementor.concreteimplementor.MusicImpl;

public class Client {
    public static void main(String[] args) {
        PhoneBrand phoneBrand = new XiaoMiPhone();
        phoneBrand.setSoft(new CallImpl());
        phoneBrand.brandOperation();
        phoneBrand.setSoft(new MusicImpl());
        phoneBrand.brandOperation();
    }
}
